<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>二维码</title>
    <script src="js/jquery2.1.4.js"></script>
    <script src="js/jquery.qrcode.js"></script>
    <script src="js/utf.js"></script>
</head>
<body>
<div id="code_id"></div>
<script>
    var obj = {
        width: 200,
        height: 200,
        text: "床前明月光, 疑是地上霜",
        correctLevel: 0,
    }
    $("#code_id").qrcode(obj);
</script>

</body>
</html>